package com.jiangjiang.eshop.order.price.v1.calculator.impl;

import com.jiangjiang.eshop.order.dto.OrderItemDTO;
import com.jiangjiang.eshop.order.dto.PromotionActivityResult;
import com.jiangjiang.eshop.order.price.v1.calculator.PromotionActivityCalculator;
import com.jiangjiang.eshop.promotion.dto.PromotionActivityDTO;
import org.springframework.stereotype.Component;

/**
 * @Author Jianghaowen
 * @Date 2021/7/14
 * @Description: TODO
 * @Version V1.0
 **/
@Component
public class DefaultPromotionActivityCalculator implements PromotionActivityCalculator {
    /**
     * 默认优惠价格计算
     * @param item 订单条目
     * @param promotionActivity 促销活动
     * @return 优惠活动金额
     * @throws Exception
     */
    @Override
    public PromotionActivityResult calculate(OrderItemDTO item, PromotionActivityDTO promotionActivity) throws Exception {
        return new PromotionActivityResult();
    }

}
